package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {

    public User findByUsername(String username);


    void add(User user,Integer[] roleIds);

    PageResult pageQuery(QueryPageBean queryPageBean);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(Integer[] roleIds, User user);

    void deleteById(Integer id);
}
